package com.southminority.ethnic.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.southminority.ethnic.column.ExcelColumn;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 课程评价表
 * @TableName course_evaluation
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="course_evaluation")
@Data
public class CourseEvaluation extends BasePoJo implements Serializable {
    /**
     * 课程评价ID
     */
    @Schema(description = "课程评价ID")
    @TableId(type = IdType.AUTO)
    @ExcelColumn(name = "课程评价ID", columnWidth = 10, value = "1",hidden = true)
    private Long id;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    @ExcelColumn(name = "课程ID", columnWidth = 10, value = "1",nonNull = true)
    private Long courseId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    @ExcelColumn(name = "用户ID", columnWidth = 10, value = "1",nonNull = true)
    private Long userId;

    /**
     * 用户名称
     */
    @Schema(description = "用户名称")
    @ExcelColumn(name = "用户名称", columnWidth = 10, value = "1")
    private String userName;

    /**
     * 评价分数（1-5分）
     */
    @Schema(description = "评价分数（1-5分）")
    @ExcelColumn(name = "评价分数（1-5分）", columnWidth = 10, value = "5",nonNull = true)
    private Integer rating;

    /**
     * 评价内容
     */
    @Schema(description = "评价内容")
    @ExcelColumn(name = "评价内容",columnWidth = 50, value = "非常好")
    private String content;
} 